const webpack = require('webpack')

module.exports = {
    lintOnSave: false,
    devServer: {
        open: true,
        host: 'www.fenxiang.com',
        port: 80,
        https: false,
        hotOnly: false,
        proxy: {
            '/api': {
                target: 'http://localhost:8080',
                changeOrigin: true,
            },
        },
    },
    configureWebpack: {
        name: "美食分享平台",
        resolve: {
            alias: {
                assets: '@/assets',
                common: '@/utils',
                components: '@/components',
                network: '@/api',
                views: '@/views',
            },
        },
        plugins: [
            new webpack.ProvidePlugin({
                'window.Quill': 'quill/dist/quill.js',
                'Quill': 'quill/dist/quill.js'
            }),
        ]
    },
}
